package com.lin.operatorlogrecord.strategy;

import com.lin.operatorlogrecord.content.OperatorLogContentUtil;
import com.lin.operatorlogrecord.unit.OperatorLogUtil;

/**
 * @Author: chenghao.lin
 * @Date: 2023/09/25
 * @Description:  删除生成变更内容模板
 */
public class DeleteOperatorLogStrategy implements IOperateLogStrategy{

    @Override
    public String getOperatorContent(Object requestObj, Class<?>[] tableEntity, String operatorObjId) {
        String objName = OperatorLogUtil.getObjName(operatorObjId, tableEntity[0]);
        return OperatorLogContentUtil.deleteFormat(OperatorLogUtil.getObjectTypeEnum(tableEntity[0]).getName(), objName);
    }
}
